<%-- 
    Document   : salidaSegura
    Created on : Nov 19, 2009, 5:48:29 AM
    Author     : victor7
--%>

<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
         <%
                          String usuario = (String) session.getAttribute("usuario");
                          if (usuario == null) {
                              RequestDispatcher rd = request.getRequestDispatcher("login.jsp");
                               rd.forward(request, response);
                          } else {
                              session.invalidate();
                              RequestDispatcher rd = request.getRequestDispatcher("login.jsp");
                              rd.forward(request, response);
                          }

                    %>
    </body>
</html>
